package com.leyou.item.mapper;

import com.leyou.common.mapper.BaseMapper;
import com.leyou.item.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface RoleMapper extends BaseMapper<Role> {

    int insertRolePermission(@Param("rid") Integer rid, @Param("pids") List<Integer> pids);

    int deleteRolePermission(@Param("rid") Integer rid);

    int countPermissionByRoleId(@Param("id") Integer id);

    int deleteRoleUser(@Param("id") Integer id);

    int countUserByRoleId(@Param("id") Integer id);

    List<Integer> queryPidsByRid(@Param("rid") Integer rid);


}